package cn.edu.lzu.service;

import cn.edu.lzu.common.assist.DataPage;
import cn.edu.lzu.common.assist.ResponseResult;
import cn.edu.lzu.entity.Examiner;

import javax.xml.crypto.Data;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * @PackageName: cn.edu.lzu.service
 * @InterfaceName: ExaminerService
 * @Description: TODO
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2019/11/28 17:05
 * @Version: 1.0
 */
public interface ExaminerService {
    Examiner selectExaminerById(long examinerId);

    int updateExaminerLastLoginTime(long examinerId);

    DataPage selectExaminerPage(int currentPageNum, int pageSize, long unitId);

    ResponseResult updateExaminerStatus(long examinerId, boolean status);

    ResponseResult registeExaminer(Examiner examiner);

    ResponseResult batchEnabledExaminers(String examinerIds);

    ResponseResult batchDisenabledExaminers(String examinerIds, long examinerSelfId);

    ResponseResult batchDeleteExaminers(String examinerIds, long examinerSelfId);

    ResponseResult deleteExaminerByExaminerId(long examinerId, long examinerSelfId);

    DataPage fuzzySearchByExaminerId(long unitId, String inputExaminerId, int pageSize);

    ResponseResult updateSelfPassword(String newPassword, long examinerId);

    ResponseResult findPwd(String examinerName, String idNumber, String email);

    DataPage getExaminers(Examiner examiner);
}
